x86/entry: Erase guest GPR state on entry to Xen
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 16 Aug 2017 17:08:01 +0000 (17:08 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 5 Jan 2018 19:57:08 +0000 (19:57 +0000)
commit03bd8c3a70d101fc2f8f36f1e171b7594462a4cd
tree4ee2f2b7ee78c89fdd870ac61c15cbf8181c27ba
parent13682ca8c94bd5612a44f7f1edc1fd8ff675dacb
x86/entry: Erase guest GPR state on entry to Xen

This reduces the number of code gadgets which can be attacked with arbitrary
guest-controlled GPR values.

This is part of XSA-254.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
xen/include/asm-x86/asm_defns.h